package com.example.service.impl;

import com.example.mapper.BusinessTypeMapper;
import com.example.model.BusinessType;
import com.example.service.BusinessTypeService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@RequiredArgsConstructor
@Service
public class BusinessTypeServiceImpl implements BusinessTypeService {
    private final BusinessTypeMapper businessTypeMapper;
    @Override
    public BusinessType getBusinessTypeById(int id) {
        return businessTypeMapper.selectById(id);
    }

    @Override
    public List<BusinessType> getBusinessTypes() {
        return businessTypeMapper.selectList();
    }

}
